package com.message.push.provider.rs;

import com.message.push.provider.common.Result;
import com.message.push.provider.model.MessageInfo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/api/message/push")
@Tag(name = "发送消息", description = "消息发送web端")
public interface MessagePushRS {

    @Operation(operationId = "sendMessage", summary = "发送消息")
    @PostMapping
    default Result<Boolean> send(MessageInfo message) {
        throw new UnsupportedOperationException("未实现");
    };

    @Operation(operationId = "support", summary = "是否支持")
    @GetMapping("/support")
    default Result<Boolean> support(String supplier){
        return Result.build(false);
    };

}
